using System;
using System.Collections;

namespace PMG.model
{
    #region OPTIONS

    /// <summary>
    /// OPTIONS object for NHibernate mapped table 'OPTIONS'.
    /// </summary>
    [Serializable]
    public class OPTIONS
    {
        #region Member Variables

        protected int _id;
        protected int _qUESTIONID;
        protected int _qUESTIONNAIREID;
        protected string _vAL;
        protected string _lABEL;
        protected string _cREATEBY;
        protected DateTime _cREATEDATE;
        protected string _lSTMODBY;
        protected DateTime _lSTMODDATE;
        protected int _oRDERX;

        #endregion

        #region Constructors

        public OPTIONS() { }

        public OPTIONS(int qUESTIONID, int qUESTIONNAIREID, string vAL, string lABEL, string cREATEBY, DateTime cREATEDATE, string lSTMODBY, DateTime lSTMODDATE, int oRDERX)
        {
            this._qUESTIONID = qUESTIONID;
            this._qUESTIONNAIREID = qUESTIONNAIREID;
            this._vAL = vAL;
            this._lABEL = lABEL;
            this._cREATEBY = cREATEBY;
            this._cREATEDATE = cREATEDATE;
            this._lSTMODBY = lSTMODBY;
            this._lSTMODDATE = lSTMODDATE;
            this._oRDERX = oRDERX;
        }

        #endregion

        #region Public Properties

        public int Id
        {
            get { return _id; }
            set { _id = value; }
        }

        public int QUESTIONID
        {
            get { return _qUESTIONID; }
            set { _qUESTIONID = value; }
        }

        public int QUESTIONNAIREID
        {
            get { return _qUESTIONNAIREID; }
            set { _qUESTIONNAIREID = value; }
        }

        public string VAL
        {
            get { return _vAL; }
            set
            {
                if (value != null && value.Length > 500)
                    throw new ArgumentOutOfRangeException("Invalid value for VAL", value, value.ToString());
                _vAL = value;
            }
        }

        public string LABEL
        {
            get { return _lABEL; }
            set
            {
                if (value != null && value.Length > 500)
                    throw new ArgumentOutOfRangeException("Invalid value for LABEL", value, value.ToString());
                _lABEL = value;
            }
        }

        public string CREATEBY
        {
            get { return _cREATEBY; }
            set
            {
                if (value != null && value.Length > 50)
                    throw new ArgumentOutOfRangeException("Invalid value for CREATEBY", value, value.ToString());
                _cREATEBY = value;
            }
        }

        public DateTime CREATEDATE
        {
            get { return _cREATEDATE; }
            set { _cREATEDATE = value; }
        }

        public string LSTMODBY
        {
            get { return _lSTMODBY; }
            set
            {
                if (value != null && value.Length > 50)
                    throw new ArgumentOutOfRangeException("Invalid value for LSTMODBY", value, value.ToString());
                _lSTMODBY = value;
            }
        }

        public DateTime LSTMODDATE
        {
            get { return _lSTMODDATE; }
            set { _lSTMODDATE = value; }
        }

        public int ORDERX
        {
            get { return _oRDERX; }
            set { _oRDERX = value; }
        }



        #endregion
    }
    #endregion
}